package com.mkjb.dto;

import com.mkjb.entity.Customer;
import com.mkjb.utils.Page;

import java.util.List;

/**
 * Created by DingJie  on 2016/1/15.
 */
public class CustomerListDto extends Page<CustomerDto> {
    private String uuid;
    //客户名
    private String name;
    //电话
    private String phone;
    //物流电话
    private String logisticsPhone;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public CustomerListDto() {
    }

    public String getLogisticsPhone() {
        return logisticsPhone;
    }

    public void setLogisticsPhone(String logisticsPhone) {
        this.logisticsPhone = logisticsPhone;
    }

    @Override
    public void addAllList(List itemList) {
        for (Object item : itemList) {
            list.add(new CustomerDto((Customer) item));
        }
    }
}
